<div class="logger">
    <?php if(!empty($log)): ?>
        <?php foreach($log as $entry): ?>
            <?php if($entry['class'] == 'delimiter'): ?>
                <hr/>
            <?php else: ?>
                <div class="<?php echo $entry['class']; ?>">
                    <?php echo $entry['date']; ?>: <?php echo html_entity_decode($entry['text']); ?>
                </div>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>
</div>